<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>OBingo</title>
<link rel="stylesheet" type="text/css" href="style/main.css" />
</head>

<body>

   <!-- Begin Wrapper -->
   <div id="wrapper">

         <!-- Begin Header -->
         <div id="header">

		       <a href="index.php"><img class="logo" src="img/logo Obingo.png" /></a>

		 </div>
		 <!-- End Header -->

		 <!-- Begin Naviagtion -->
         <div id="navigation">

		 </div>
		 <!-- End Naviagtion -->

		 <!-- Begin Content -->
		 <div id="content">
		 	<?php
                            include "conectarse.php";
                            $resultado = mysql_query("SELECT * FROM ronda WHERE status = 0", $link);
                            while ($registro = mysql_fetch_array($resultado)){
                                    echo '<FORM action="cantCartones.php" method="post">';
                                    echo $registro['fecha']."   -   ";
                                    echo "<div id='idRonda'>".$registro['num_ronda']."</div>    -   ";
                                    echo '<input type="submit" value="Jugar Partida">';
                                    $partida = $registro['Partida_idPartida'];
                                    $ronda = $registro['idRonda'];
                                    echo '<input type="hidden" name="idPartida" id="idPartida" value="'.$partida.'" />';
                                    echo '<input type="hidden" name="idRonda" id="idRonda" value="'.$ronda.'" />';
                                    echo "</FORM>";
                                    }
                            include "desconectarse.php";
                        ?>
		 </div>
		 <!-- End Content -->

		 <!-- Begin Footer -->
		 <div id="footer">
			    Realizado por Gabriel Afonso, Adri&aacute;n Matteo y Bruno Terra.
	     </div>
		 <!-- End Footer -->

   </div>
   <!-- End Wrapper -->

</body>
</html>

